<template>
  <footer class="common-footer">
    <div class="footer-content">
      <!-- 主要信息区域 -->
      <div class="footer-main">
        <!-- 品牌信息 -->
        <div class="brand-section">
          <div class="brand-logo">
            <img src="@/assets/logo.png" alt="健康预测平台" class="footer-logo" />
            <div class="brand-text">
              <h3>健康预测平台</h3>
              <p>智能健康评估与风险预测</p>
            </div>
          </div>
          <p class="brand-description">
            我们致力于通过先进算法为您提供专业的健康风险评估，帮助您更好地了解个人健康状况。
          </p>
        </div>
                
        <!-- 联系信息 -->
        <div class="contact-section">
          <h4>联系我们</h4>
          <div class="contact-info">
            <div class="contact-item">
              <i class="icon-email"></i>
              <span>disclaimer@healthpredict.com</span>
            </div>
            <div class="contact-item">
              <i class="icon-location"></i>
              <span>辽宁省大连市甘井子区软件园路8号</span>
            </div>
            <div class="contact-item">
              <i class="icon-phone"></i>
              <span>400-888-8888</span>
            </div>
          </div>
        </div>
        
        <!-- 法律条款 -->
        <div class="legal-section">
          <h4>法律条款</h4>
          <ul class="footer-links">
            <li><router-link to="/privacy-policy">隐私政策</router-link></li>
            <li><router-link to="/user-agreement">用户协议</router-link></li>
            <li><router-link to="/disclaimer">免责声明</router-link></li>
          </ul>
        </div>
      </div>
      
      <!-- 底部版权信息 -->
      <div class="footer-bottom">
        <div class="footer-info">
          <p>© 2025 健康预测平台 - 保护您的健康隐私，提供风险评估</p>
          <p>本平台仅供健康参考，不能替代专业医疗诊断</p>
        </div>
      </div>
    </div>
  </footer>
</template>

<script setup name="Footer">
// Footer组件逻辑已简化
</script>

<style scoped>
.common-footer {
  background: linear-gradient(135deg, #1a3a5f 0%, #2c5282 100%);
  color: #ffffff;
  padding: 60px 0 20px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.common-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4299e1, #48bb78, #ed8936);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 品牌信息样式 */
.brand-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.footer-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background-color: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brand-text h3 {
  margin: 0;
  font-size: 22px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 5px;
}

.brand-text p {
  margin: 0;
  font-size: 14px;
  color: #a0aec0;
}

.brand-description {
  font-size: 15px;
  line-height: 1.6;
  color: #cbd5e0;
  margin: 0;
}

/* 链接区域样式 */
.contact-section h4,
.legal-section h4 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: #ffffff;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.contact-section h4::after,
.legal-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #4299e1;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 15px;
}

.footer-links a:hover {
  color: #4299e1;
  padding-left: 5px;
}

/* 联系信息样式 */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e0;
  font-size: 15px;
}

.contact-item i {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(66, 153, 225, 0.2);
  border-radius: 4px;
  color: #4299e1;
}

/* 底部版权信息 */
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 15px;
}

.footer-info p {
  margin: 5px 0;
  font-size: 14px;
  color: #a0aec0;
  line-height: 1.5;
}

/* 图标样式（使用伪元素模拟图标） */
.icon-email::before { content: "✉"; }
.icon-location::before { content: "📍"; }
.icon-phone::before { content: "📞"; }

/* 响应式设计 */
@media (max-width: 1200px) {
  .footer-main {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .brand-section {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .brand-section {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .common-footer {
    padding: 40px 0 20px;
  }
  
  .footer-content {
    padding: 0 15px;
  }
  
  .footer-main {
    gap: 25px;
  }
  
  .brand-logo {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
</style>